// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'OutsourceNoticeId',
        footer: "Foots",
        cnName: '委外通知单',
        name: 'OutsourceNotice',
        newTabEdit: false,
        url: "/OutsourceNotice/",
        sortName: "OutsourceNoticeId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"BillNo":"","BillDate":"","SupplyId":"","ProductProcessNo":"","ProductProcessName":"","ProductProcessTypeId":"","DepartmentId":[],"ReportWorkTypeId":"","PlanQty":"","QualifyQty":"","UnQualifyQty":"","ScrapQty":"","CompleteStatusId":""};
    const editFormOptions = [[{"title":"单据编号","field":"BillNo","disabled":true,"type":"text"},
                               {"title":"单据日期","required":true,"field":"BillDate","disabled":true,"type":"date"},
                               {"dataKey":"供应商档案","data":[],"title":"供应商","required":true,"field":"SupplyId","disabled":true,"type":"select"}],
                              [{"title":"工序编码","required":true,"field":"ProductProcessNo","disabled":true,"type":"text"},
                               {"title":"工序名称","required":true,"field":"ProductProcessName","disabled":true,"type":"text"},
                               {"dataKey":"工序类型","data":[],"title":"工序类型","required":true,"field":"ProductProcessTypeId","disabled":true,"type":"select"}],
                              [{"dataKey":"部门级联","data":[],"title":"部门","required":true,"field":"DepartmentId","disabled":true,"type":"cascader"},
                               {"dataKey":"报工方式","data":[],"title":"报工方式","required":true,"field":"ReportWorkTypeId","disabled":true,"type":"select"},
                               {"title":"计划数量","required":true,"field":"PlanQty","disabled":true,"type":"decimal"}],
                              [{"title":"合格数量","field":"QualifyQty","disabled":true,"type":"decimal"},
                               {"title":"不合格数量","field":"UnQualifyQty","disabled":true,"type":"decimal"},
                               {"title":"报废数量","field":"ScrapQty","disabled":true,"type":"decimal"}],
                              [{"dataKey":"报工状态","data":[],"title":"完工状态","required":true,"field":"CompleteStatusId","disabled":true,"type":"select"}]];
    const searchFormFields = {"BillNo":""};
    const searchFormOptions = [[{"title":"单据编号","field":"BillNo","type":"like"}]];
    const columns = [{field:'OutsourceNoticeId',title:'委外通知单标识',type:'int',width:80,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ProductTaskId',title:'生产任务单标识',type:'int',width:110,hidden:true,require:true,align:'left'},
                       {field:'ProductTaskProcessId',title:'生产任务工序明细标识',type:'int',width:110,hidden:true,require:true,align:'left'},
                       {field:'BillNo',title:'单据编号',type:'string',link:true,width:110,readonly:true,align:'left'},
                       {field:'BillDate',title:'单据日期',type:'date',width:110,readonly:true,require:true,align:'left'},
                       {field:'SupplyId',title:'供应商',type:'int',bind:{ key:'供应商档案',data:[]},width:110,readonly:true,require:true,align:'left'},
                       {field:'ProductProcessId',title:'工序标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ProductProcessNo',title:'工序编码',type:'string',width:110,readonly:true,require:true,align:'left'},
                       {field:'ProductProcessName',title:'工序名称',type:'string',width:110,readonly:true,require:true,align:'left'},
                       {field:'ProductProcessTypeId',title:'工序类型',type:'int',bind:{ key:'工序类型',data:[]},width:110,readonly:true,require:true,align:'left'},
                       {field:'DepartmentId',title:'部门',type:'guid',bind:{ key:'部门级联',data:[]},width:110,readonly:true,require:true,align:'left'},
                       {field:'DepartmentName',title:'部门名称',type:'string',width:110,hidden:true,readonly:true,align:'left'},
                       {field:'ReportWorkTypeId',title:'报工方式',type:'int',bind:{ key:'报工方式',data:[]},width:110,readonly:true,require:true,align:'left'},
                       {field:'PlanQty',title:'计划数量',type:'decimal',width:110,readonly:true,require:true,align:'left'},
                       {field:'QualifyQty',title:'合格数量',type:'decimal',width:110,readonly:true,align:'left'},
                       {field:'UnQualifyQty',title:'不合格数量',type:'decimal',width:110,readonly:true,align:'left'},
                       {field:'ScrapQty',title:'报废数量',type:'decimal',width:110,readonly:true,align:'left'},
                       {field:'CompleteStatusId',title:'完工状态',type:'int',bind:{ key:'报工状态',data:[]},width:110,readonly:true,require:true,align:'left'},
                       {field:'CreateID',title:'创建人标识',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Creator',title:'创建人名称',type:'string',width:100,align:'left'},
                       {field:'CreateDate',title:'创建日期',type:'datetime',width:110,align:'left'},
                       {field:'ModifyID',title:'修改人标识',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Modifier',title:'修改人名称',type:'string',width:100,align:'left'},
                       {field:'ModifyDate',title:'修改日期',type:'datetime',width:110,align:'left'},
                       {field:'AuditDate',title:'审核日期',type:'datetime',width:110,align:'left'},
                       {field:'AuditStatus',title:'审核状态',type:'int',width:110,align:'left'},
                       {field:'AuditId',title:'审核人标识',type:'int',width:110,align:'left'},
                       {field:'Auditor',title:'审核人',type:'string',width:120,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}